GtkListBox: Animate keybindings
authorMatthias Clasen <mclasen@redhat.com>
Thu, 3 Jul 2014 00:36:41 +0000 (20:36 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 3 Jul 2014 00:58:16 +0000 (20:58 -0400)
gtk/gtklistbox.c

index cb9aa7c2213eb54a8d4a73e9cb7d1eadcfcd36d5..30339020f23b8a5e59f307d2508e43db2e29ee07 100644 (file)
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include "gtkadjustmentprivate.h"
 #include "gtklistbox.h"
 #include "gtkwidget.h"
 #include "gtkmarshalers.h"
@@ -2730,9 +2731,9 @@ gtk_list_box_move_cursor (GtkListBox      *box,
             }
           end_y = ROW_PRIV (row)->y;
           if (end_y != start_y && priv->adjustment != NULL)
-            gtk_adjustment_set_value (priv->adjustment,
-                                      gtk_adjustment_get_value (priv->adjustment) +
-                                      end_y - start_y);
+            gtk_adjustment_animate_to_value (priv->adjustment,
+                                             gtk_adjustment_get_value (priv->adjustment) +
+                                             end_y - start_y);
         }
       break;
     default: